<%-- 
    Document   : index
    Created on : 1-lug-2012, 1.03.41
    Author     : Rosario Salone
--%>

<%@page import="war.CalendarFeedD"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <title>HomeTeatre</title>
</head>
<style type="text/css">
<!--
.Stile3 {
	
	font-size: 28px;
	color: #FFFFFF;
}
.Stile5 {color: #00FFFF}
.Stile6 {
	font-size: 36;
	color: #FFFFFF;
}

.Stile7 {
	font-size: 36;
	color:  yellow
}
.Stile9 {
	font-size: 18px;
	color: #FFFF00;
}

.Stile8 {font-size: 18px; color: #FFFFFF; }
.Stile10 {color: #00FFFF; font-size: 16px; }
.Stile11 {font-size: 16px}
-->
</style>
<body>
<table width="804" height="96" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <th width="100" scope="col"><img src="immagini/posta052.gif" width="64" height="77" /></th>
    <th width="700" scope="col"><img src="immagini/httitolo.jpg" width="700" height="100" /></th>
    
  </tr>
</table>

<table width="800" border="0" cellpadding="0" cellspacing="0" bgcolor="#0066CC">
  <tr>
    <th width="100" height="181" border="10" rowspan="9" valign="top" scope="col">
        
        <%
        
          if (session.getAttribute("password")==null || session.getAttribute("login")==null){ 


      %>     
                
                <a href="accediUt.jsp"><img src="immagini/Accedi.jpg" width="103" height="50" /></a>
        <a href="registraUtente.jsp"><img src="immagini/Registrati.jpg" width="103" height="50" /></a>
        
        
            
            
        <%} else{
                if (session.getAttribute("verifica")!=null){     
                %>
                <img src="immagini/AreaAmmini3.jpg" width="103" height="50" />
                <a href="aggiungiEvento.jsp"><img src="immagini/AggEv.jpg" width="103" height="50" /></a>
            <a href="nonImplementato.jsp"><img src="immagini/RimUt.jpg" width="103" height="50" /></a>
            <a href="cancellaUtente.jsp"><img src="immagini/CanUt.jpg" width="103" height="50" /></a>

        
        <%}else
        {                                          
         %> 
              <img src="immagini/AreaGest.jpg" width="103" height="50" />
              <a href="accessoPrenot.jsp"><img src="immagini/prenotazioni_1.jpg" width="103" height="50" /></a>
                <a href="modificaUtente.jsp"><img src="immagini/ModificaD.jpg" width="103" height="50" /></a>
            
           
            
            <a href="cancellaUtente.jsp"><img src="immagini/CanUt.jpg" width="103" height="50" /></a>                        
                  <%}
                
      
                %> 
                
                              &nbsp;&nbsp;
          <form id="form1" name="form1" method="post" action="Controller">
          <input type="hidden" value="logOut" name="provenienza" />
          <input type="submit" value="log out" name="logOut" />
          
          </form>
<%} %>

     </th>
          
    <th width="400" rowspan="6" align="center" valign="middle" scope="col">
        <form id="form1" name="form1" method="post" action="Controller">

            
      <%
        
          if (session.getAttribute("password")==null || session.getAttribute("login")==null){ //session.getAttribute("cognome").equals("admin")


      %>     
      <p class="Stile8">Permettiti di vivere l'esperienza di HomeTeatre!<br/> Registrati con il tuo account Gmail!</p>                
            
        <%} else{
              
            if(request.getAttribute("errore")!=null){
                if(request.getAttribute("errore").equals("just")) {%>
              
             

             <font size =+3 color=red> Evento già prenotato! </font><br/>
             <span class="Stile7">Ricerca un altro evento o annulla la prenotazione!<br/> NON verranno effettuati rimborsi!</span> <%
                request.setAttribute("errore","null");}
                 
             } else{%>

              <p class="Stile8">Benvenuto su HomeTeatre, ricerca e prenota l'evento desiderato</p>                
        <%}}%>            
   
     <% if(session.getAttribute("Errore")!=null){
         if(session.getAttribute("Errore").equals("ricerca")){
     %>       <font size =+1 color=red> ERRORE! Devi scegliere un opzione! </font>    <%  
        session.setAttribute("Errore", null);
         } else {%>       <font size =+1 color=red> ERRORE! Devi scegliere tipo di evento! </font>    <%  }
         
        }
     
        %>

<p class="Stile6" align="center"  >Seleziona l'opzione che desideri e avvia la ricerca! 
          
<br />
<hr width="350">
          <span class="Stile10">
          <input type="radio" name="button" value="nome" />          
          <span class="Stile5">&nbsp;&nbsp;Nome Evento  </span>                    
          </span>
    
          <span class="Stile10"> 
              <span class="Stile5">
            
        
          <input type="radio" name="button" value="data" />
          &nbsp;Data Evento </span> 
          </span>
    
          <span class="Stile10"> 
          
        <input type="radio" name="button" value="luogo" />
          &nbsp;Luogo Evento</span> 
<br />
          <br />
          <span class="Stile6">Ricerca Evento:</span>
          <input type="text" name="rice" size="15" />
          
          <hr width="350">

     <span class="Stile10"><br />
    <input type="radio" name="button" value="tipo"  />
          Tipo Evento </span>
    
    <span class="Stile10"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="button" value="tutti" />
          Tutti gli eventi </span>

              
              
<p class="Stile6" align="right"  >                                                  
        <select name="tipe" >                        
                        <option> </option>
                        <option>Concerto</option>
                        <option>Cabaret</option>                                                
                        <option>Intrattenimento</option>                        
                        <option>Musical</option>
                        <option>Sport</option>                        
                        <option>Teatro</option>
                        </select>       &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </p>
                        <hr width="350">
<p align="center" ><br /><input type="hidden" name="provenienza" value="ricercaEvento" />
      &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Avvia Ricerca" name="ricerca" /></p>

        
 



     
     </form>
         
        </th>
        <th valign="top" scope="col" >
            <br /><br />
            <span class="Stile8">Gli eventi del mese</span>            
          <iframe src="https://www.google.com/calendar/embed?showTitle=0&amp;showNav=0&amp;showDate=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;mode=AGENDA&amp;height=250&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=hometeatreweb%40gmail.com&amp;color=%232952A3&amp;ctz=Europe%2FRome" style=" border:solid 1px #777 " width="200" height="337" frameborder="0" scrolling="no"></iframe></th>
        <th width="100" height="181" rowspan="9" valign="top" scope="col"><img src="immagini/home.jpg" width="103" height="400" /></th>

    
  
  
 
</table>
</body>
</html>
